/*
 * Copyright (c) 2007 Compl Yue Still, All Rights Reserved.
 */

package oex.data;

import java.util.Map;
import java.util.concurrent.ConcurrentHashMap;

public class ObjectShape
{

    public final String type;

    public final int oid;

    public ObjectShape(String type, int oid)
    {
        this.type = type;
        this.oid = oid;
    }

    private final Map<String, Object> properties = //
    new ConcurrentHashMap<String, Object>();

    public Object getProperty(String name)
    {
        return properties.get(name);
    }

    public void setProperty(String name, Object value)
    {
        properties.put(name, value);
    }

    public Iterable<Map.Entry<String, Object>> getPropertyEntries()
    {
        return properties.entrySet();
    }

}
